;
(function () {
  'use storage';

  window.s = {};

  s.get = function (key) {
    var json = localStorage.getItem(key);
    return JSON.parse(json);
  };

  s.set = function (key, val) {
    val = JSON.stringify(val);
    return localStorage.setItem(key, val);
  };
  
})();